/**
 * Created by loso on 2017/3/27.
 */
public class _168_ExcelSheetColumnTitle {

    public static void main(String[] args) {
        _168_ExcelSheetColumnTitle a = new _168_ExcelSheetColumnTitle();
        System.out.println(a.convertToTitle(28));
    }

    public String convertToTitle(int n) {
    StringBuilder sb = new StringBuilder();
    n -=1;
    while (n >= 0){
        sb.insert(0,(char)(n%26+'A'));
        n = (n- n%26)/ 26 - 1;
    }
        return sb.toString();

    }

}
